/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package base;

/**
 *
 * @author pbelov
 */
public class User {
    private String name;
    private String login;
    private String mail;
    private int privileges;
    private String teamLeader;

    private String teamName;

    private boolean isLeader;
    private User[] team; // is null if isLeader is false

    public static int counter = 0;

    public User() {
    }

    public User(User user) {
        if (user != null) {
            name = user.getName();
            login = user.getLogin();
            mail = user.getMail();
            teamName = user.getTeamName();
            teamLeader = user.getTeamLeader();
            privileges = user.getPrivileges();
        }
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setLogin(String login) {
        this.login = login;
    }

    public void setMail(String mail) {
        this.mail = mail;
    }

    public void setPriv(int priv) {
        this.privileges = priv;
    }

    public void setTeamName(String teamName) {
        this.teamName = teamName;
    }

    public void setTeamLeader(String teamLeader) {
        this.teamLeader = teamLeader;
    }

    public String getName() {
        return name;
    }

    public String getLogin() {
        return login;
    }

    public String getMail() {
        return mail;
    }

    public String getTeamName() {
        return teamName;
    }

    public String getTeamLeader() {
        return teamLeader;
    }

    public int getPrivileges() {
        return privileges;
    }
}